package com.tarena.lbs.stock.web.service.impl;

import com.tarena.lbs.pojo.stock.bo.CouponStockBO;
import com.tarena.lbs.pojo.stock.param.CouponStockParam;
import com.tarena.lbs.stock.web.repository.CouponStockRepository;
import com.tarena.lbs.stock.web.service.CouponStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CouponServiceImpl implements CouponStockService {

    @Autowired
    private CouponStockRepository couponStockRepository;

    @Override
    public void insert(CouponStockParam param) {
        couponStockRepository.insert(param);
    }

    @Override
    public void update(CouponStockParam param) {
        couponStockRepository.update(param);
    }

    @Override
    public CouponStockBO getDetail(Integer couponId) {
        return couponStockRepository.getDetail(couponId);
    }
}
